-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5634 unit testing #5658
5634 unit testing #5658
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the code coverage! Overall things look good but I have a few minor requests
src/test/java/edu/harvard/iq/dataverse/dataaccess/DataAccessTest.java
Outdated
Show resolved
Hide resolved
src/test/java/edu/harvard/iq/dataverse/dataaccess/DataAccessTest.java
Outdated
Show resolved
Hide resolved
src/test/java/edu/harvard/iq/dataverse/datasetutility/FileSizeCheckerTest.java
Outdated
Show resolved
Hide resolved
src/test/java/edu/harvard/iq/dataverse/datasetutility/FileSizeCheckerTest.java
Outdated
Show resolved
Hide resolved
Hi @matthew-a-dunlap! Thanks for the comments, I have resolved them in my last two commits :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for the quick changes!
This PR adds some initial unit tests to the following classes/methods:
FileMetadata.getFileDateToDisplay
DataAccess.createNewStorageIO (partial)
FileSizeChecker.testIsAllowedFileSize
I also added and used the testing dependency on
junit.jupiter.params
as described in #5657.Related Issues
Pull Request Checklist